package net.zjitc.api;

/**
 * @Author admin
 * @Date 2019/3/27 10:40
 */
public class MathTest {
    public static void main(String[] args) {

        System.out.println("向下取整5.6 : "+Math.floor(5.6));
        System.out.println("四舍五入5.6 : " +Math.round(5.6));
        System.out.println("2的3次方 : "+Math.pow(2,3));
        System.out.println("2和6的最大值 : "+Math.max(2,6));
        System.out.println("0到1之间的随机数 ："+Math.random());
    }
}
